/*This is the assignment for the course called Introduction to Informatics,
 * which was originally written for Windows. However, I made a few changes to
 * the code, so it can be run on Linux now. Hope you enjoyed the game.*/
#include "head.h"
//#include "Demo.h"

int max(int a, int b) { return a > b ? a : b; }
int min(int a, int b) { return a < b ? a : b; }

void mySleep(int x) {
#if defined(__linux__)
  usleep(x * 1000);
#elif defined(__WIN32__)
  Sleep(x);
#else
  for (int i = 0; i <= i * 100000; ++i);
#endif
}
#ifdef __linux__
char getch() {
  char c = getchar();
  getchar();
  return c;
}
#endif